@extends("backend.layout.main")

@section("right_content")

    <div class="mainWrapBox">
        <div class="mainBox">
            <div class="html">
                <div class="body">
                    <div class="pro_main">
                        <div class="infor_mian">
                            <!--left-->
                            <div class="info_lefts left">
                                <div class="info_lefts_title left">
                                    消息中心
                                </div>
                                <ul class="info_lefts_nav">
                                    {{--<li class="border_btm"><a href="backend/member/task"><span class="left">审批</span></a><div class="cl"></div></li>--}}
                                    <li class="border_btm foucs"><a><span class="left">通知</span></a><div class="cl"></div></li>
                                </ul>
                            </div>
                            <!--left-->

                            <!--right-->
                            <form action="/backend/personal" id="frmPerson" method="post">
                                {{csrf_field()}}
                                <input type="hidden" name = "parm" value="info">
                                <div class="info_rights">
                                    <div class="info_rights_title">
                                        全部通知
                                    </div>
                                    <ul id="message_list" class="info_rights_list mt10">

                                        @foreach($message as $value)
                                        <li>
                                            <div class="we_ios left">
                                                <div class="we_pis" style="background:url('{{$value->img}}');background-size:100%,100%;">
                                                </div>
                                            </div>
                                            <div class="we_text  left">
                                                <div class="we_text_title left">
                                                        <span class="left we_text_con">

                                                        <em class="col009DC8"> {{$value->content}} </em>
                                                        {{--<a href=""><em class="col009DC8">{{$value->items_name}}</em></a>--}}
                                                        {{--<em class="col009DC8">{{$value->task_name}}</em>--}}
                                                        </span>
                                                        <span class="right we_text_time">
                                                        <div class="right">{{ date('Y-m-d H:i:s', $value->created_at ) }}</div>
                                                        </span>
                                                    <div class="cl">
                                                    </div>
                                                </div>
                                                <div class="we_text_title we_cvn2 mt10 left"></div></div><div class="cl">
                                            </div>
                                        </li>
                                        @endforeach
                                    </ul>
                                    <div class="cl"></div>
                                </div>
                            </form>
                            <!--right-->

                        </div>
                        <div class="pagination">
                            {!! $message->links() !!}
                            <input type="hidden" id="page" name="page">
                        </div>
                        <div class="cl"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection